package com.csii.adhoc.dataready.mapper;

import com.csii.adhoc.dataready.TDataRelationPo;

import java.util.List;
import java.util.Map;

public interface TDataRelationMapper {
    int deleteByRelationId(String relationId);

    int deleteByModelId(String modelId);

    int insertOneTDataRelation(TDataRelationPo record);

    int insertSelective(TDataRelationPo record);

    TDataRelationPo selectByPrimaryKey(String modelId);

    int updateByPrimaryKeySelective(TDataRelationPo record);

    int updateByPrimaryKey(TDataRelationPo record);

    List<TDataRelationPo> selectListTDataRelation(String type);

    List<Map<String,String>> selectTableIdByModelId(String modelId) ;

    TDataRelationPo selectOneTDataRelation(String modelId, String type);

    Map selCustDataDbTable(String model_id);
}